cd /var/cache/apt/archives
mkdir 0
mv *.deb 0
apt-get install -y build-essential cmake gdb socat ninja-build
mkdir 1
mv *.deb 1
apt-get install -y libfreetype6-dev libproj-dev libboost-dev libzmq3-dev libprotobuf-dev protobuf-compiler libcgroup-dev
mkdir 2
mv *.deb 2
#debian11之后没有libosgearth-dev软件包，需要自己下载编译
#wget -c http://archive.ubuntu.com/ubuntu/pool/universe/o/osgearth/osgearth_2.10.2+dfsg.orig.tar.xz
wget -c http://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/universe/o/osgearth/osgearth_2.10.2+dfsg.orig.tar.xz
apt-get install -y libopenscenegraph-dev
mkdir 3
mv *.deb 3
apt-get install -y qtbase5-private-dev qttools5-private-dev qtdeclarative5-private-dev qtwebengine5-private-dev libqtav-private-dev libqt5charts5-dev libqt5datavisualization5-dev libqt5networkauth5-dev libqt5virtualkeyboard5-dev libqt5scripttools5 libqt5xmlpatterns5-dev libqt5x11extras5-dev libqt5svg5-dev qt5keychain-dev qt5-style-plugins qt5-qmltooling-plugins qt5-image-formats-plugins
mkdir 4
mv *.deb 4
apt-get install -y libqt5remoteobjects5-dev libqt5remoteobjects5-bin libqt5sql5-mysql
mkdir 5
mv *.deb 5
apt-get install -y qgis-providers
mkdir 6
mv *.deb 6
apt-get install -y libqgis-dev
mkdir 7
mv *.deb 7
apt-get install -y liblog4cpp5-dev libgtest-dev libgmock-dev libtinyxml2-dev
mkdir 8
mv *.deb 8
#编译qgis需要以下依赖：
apt-get install -y flex bison libzip-dev libqt5serialport5-dev libspatialindex-dev
mkdir 9
mv *.deb 9
apt-get install -y default-mysql-server
mkdir 10
mv *.deb 10
apt-get install -y libavdevice-dev libavfilter-dev libavresample-dev
mkdir 11
mv *.deb 11
mkdir 12
cd 12 && wget -c https://vscode.download.prss.microsoft.com/dbazure/download/stable/65edc4939843c90c34d61f4ce11704f09d3e5cb6/code_1.95.1-1730354713_arm64.deb
#dpkg -i code_1.95.1-1730354713_arm64.deb
#tar xf vscode.tar.xz -C ~
cd ..
apt-get install -y rabbitvcs-cli rabbitvcs-gedit rabbitvcs-nautilus
mkdir 13
mv *.deb 13
#libcurl4-openssl-dev与libcurl4-gnutls-dev只能二选一，不能同时存在
#apt-get install -y libcurl4-openssl-dev libsdl2-dev
apt-get install -y libsdl2-dev
mkdir 14
mv *.deb 14
apt-get install -y libboost-serialization-dev libboost-system-dev libboost-date-time-dev libasio-dev
mkdir 15
mv *.deb 15
#如果没有libqgis-dev，单独安装以下软件包
apt-get install -y qtpositioning5-dev libqt5gamepad5-dev libboost-serialization-dev libboost-system-dev libboost-date-time-dev libasio-dev libgdal-dev libpq-dev python3-dev libqwt-qt5-dev libexiv2-dev libexpat1-dev libgsl-dev pyqt5.qsci-dev libqscintilla2-qt5-dev libqca-qt5-2-dev libqt5webkit5-dev
mkdir 16
mv *.deb 16
apt-get install -y xserver-xorg xinit xterm tightvncserver
mkdir 17
mv *.deb 17
apt-get install -y udftools growisofs exfat-fuse exfat-utils 
mkdir 18
mv *.deb 18

